﻿<UserControl x:Class="AphroditePianoLoading.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="1000" Height="600" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
    <Grid x:Name="LayoutRoot">

    	<vsm:VisualStateManager.VisualStateGroups>
    		<vsm:VisualStateGroup x:Name="VisualStateGroup">
    			<vsm:VisualStateGroup.Transitions>
    				<vsm:VisualTransition GeneratedDuration="00:00:00.1000000"/>
    			</vsm:VisualStateGroup.Transitions>
    			<vsm:VisualState x:Name="loading">
    				<Storyboard>
    					<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="btnPlay" Storyboard.TargetProperty="(UIElement.Visibility)">
    						<DiscreteObjectKeyFrame KeyTime="00:00:00">
    							<DiscreteObjectKeyFrame.Value>
    								<Visibility>Collapsed</Visibility>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    				</Storyboard>
    			</vsm:VisualState>
    			<vsm:VisualState x:Name="ready">
    				<Storyboard>
    					<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="xProgressBar" Storyboard.TargetProperty="(UIElement.Visibility)">
    						<DiscreteObjectKeyFrame KeyTime="00:00:00">
    							<DiscreteObjectKeyFrame.Value>
    								<Visibility>Collapsed</Visibility>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    				</Storyboard>
    			</vsm:VisualState>
    		</vsm:VisualStateGroup>
    	</vsm:VisualStateManager.VisualStateGroups>
    	<Image Source="loadingBG.jpg" Stretch="None"/>
    	<ProgressBar BorderBrush="{StaticResource BoderBrush}" Height="16" Margin="207,0,257,268" x:Name="xProgressBar" VerticalAlignment="Bottom" Foreground="#FF114E2A"/>
    	<Button Height="34" HorizontalAlignment="Right" Margin="0,0,339,258" x:Name="btnPlay" VerticalAlignment="Bottom" Width="95" Background="#FFA1FC04" BorderBrush="{StaticResource BoderBrush}" FontFamily="Portable User Interface" FontSize="16" FontWeight="Bold" Foreground="#FF104D2A" Content="Enter" Click="btnPlay_Click"/>
    	<TextBlock Height="16" HorizontalAlignment="Left" Margin="8,0,0,8" VerticalAlignment="Bottom" Width="160" Text="http://nasa.cnblogs.com" TextWrapping="Wrap"/>

    </Grid>
</UserControl>
